package net.threeple.logger.data.enhancer;

import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.threeple.logger.data.model.DataLog;

@Aspect
public class RecorderAspect extends RecorderAbstractAspect {
	static final Logger logger = LoggerFactory.getLogger(RecorderAspect.class);
	
	@Override
	public boolean saveLog(DataLog log) {
		logger.debug("用户的ID：{}", log.getUserId());
		logger.debug("数据内容：{}", log.getPayload());
		logger.debug("操作类型：{}", log.getOperationType());
		logger.debug("保存的数据变更信息：{}", log);
		return false;
	}

}
